package modelo;

public class Validator {
	private int lowerLimit;
	private int upperLimit;
	
	public boolean validateArgs(int arg1, int arg2){
		if (arg1 > this.upperLimit) throw new OverflowException();
		if (arg2 < this.lowerLimit) throw new OverflowException();
		if (arg1 < this.lowerLimit) throw new OverflowException();
		if (arg2 > this.lowerLimit) throw new OverflowException();
		return true;
		
	}

}
